<#include "/front/layout/__layout.ftl">
<#include "/front/layout/_paginate.ftl">
<@html>
<link href="${ctx!}/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="${ctx!}/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="${ctx!}/admin/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<link href="${ctx!}/admin/css/animate.css" rel="stylesheet">
<link href="${ctx!}/admin/css/style.css?v=4.1.0" rel="stylesheet">
<div id="blog-list">
	<#if (page.content?size > 0)>
	     <div class="container">
			 <div class="row">
				 <div class="col-md-6"><h2>帖子</h2></div>
				 <div class="col-md-3"><h2>发贴人</h2></div>
				 <div class="col-md-3"><h2>操作</h2></div>
			 </div>
			 <#list page.content as x>
				 <div class="row">
					 <div class="col-md-6">
				 		 <div class="row">
				 		 	 <div class="col-md-12"><h3>${(x.title)!}</h3></div>
				 		 </div>
				 		 <div class="row">
				 		 	 <div class="col-md-12">${x.content}</div>
				 		 </div>
				 		 <div class="row">
				 		 	 <div class="col-md-12">	
				 		 	 	<span><img style="width:100px;height:50px" src="${ctx!}/download/image?fileName=1_1510560373661.png" class="img-polaroid" ></span>
				 		 	 	<span><img style="width:100px;height:50px" src="${ctx!}/download/image?fileName=1_1510560373661.png" class="img-polaroid" ></span>
				 		 	 	<span><img style="width:100px;height:50px" src="${ctx!}/download/image?fileName=1_1510560373661.png" class="img-polaroid" ></span>
				 		 	 	<span><img style="width:100px;height:50px" src="${ctx!}/download/image?fileName=1_1510560373661.png" class="img-polaroid" ></span>
				 		 	 	<span><img style="width:100px;height:50px" src="${ctx!}/download/image?fileName=1_1510560373661.png" class="img-polaroid" ></span>
				 		 	 	<span><img style="width:100px;height:50px" src="${ctx!}/download/image?fileName=1_1510560373661.png" class="img-polaroid" ></span>
				 		 	 </div>
				 		 </div>
					 </div>
					 <div class="col-md-3">
						 <div class="row">
					   	 	<span><img style="width:100px;height:50px" src="${ctx!}/download/image?fileName=1_1510560617524.png" class="img-polaroid" ></span>
						 </div>
					     <div class="row">
					       	<span>${x.nickName}</span>
						 </div>
					 </div>
					 <div class="col-md-3">
					 	<p>
						  	<div class="row">
						 		<div class="col-md-12">
							   	 	<span><a href="#" onclick='checkSuccess(${x.id},0)' class="btn btn-danger">屏蔽</a></span>
							   	 </div>
							</div>
						</p>
						<p>
						 	<div class="row">	   	 
							     <div class="col-md-12">
							       	<span><a href="#" onclick='checkSuccess(${x.id},1)' class="btn btn-success">通过</a></span>
								 </div>
							</div>
						</p>
					 </div>
				 </div>
			 </#list>
		</div>
	<#else>
		<div class="qing-content">
			没有任何数据
		</div>
	</#if>
</div>

<script src="${ctx!}/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="${ctx!}/admin/js/bootstrap.min.js?v=3.3.6"></script>

<!-- Bootstrap table -->
<script src="${ctx!}/admin/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="${ctx!}/admin/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="${ctx!}/admin/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>

<!-- Peity -->
<script src="${ctx!}/admin/js/plugins/peity/jquery.peity.min.js"></script>

<script src="${ctx!}/admin/js/plugins/layer/layer.min.js"></script>

<!-- 自定义js -->
<script src="${ctx!}/admin/js/content.js?v=1.0.0"></script>

<script src="${ctx!}/admin/js/plugins/artTemplate/template.js"></script>
<script type="text/javascript">
$(document).ready(function () {
　function checkSuccess(id,no){
	$.post("${ctx!}/c/view/id",{"success":no},function(data){
		console.log(data);
	});
		
	} 
}); 
</script>
<!-- 分页 -->
<@paginate currentPage=page.number + 1  totalPage=page.totalPages link="/c/list?p=" />
</@html>
